#include "DoubleLinkList.h"


void ShowData(DoubleLInkList::ElementType element)
{
    char *p = (char*)element;
    std::cout<<p<<" ";
}


int main()
{
    DoubleLInkList l;
    char p[] = "hello";
    char p1[] = "world";
    l.SetShowPtr(ShowData);
    l.InsertTail(p);
    l.InsertTail(p1);
    l.InsertTail((void*)"nihao");
    l.RemoveByElement((void*)"nihao");
    l.RemoveByElement(p1);
    l.RemoveByIndex(0);
    l.show();
    return 0;
}